package com.xyf.sys.domain;

import com.fasterxml.jackson.annotation.JsonFormat;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

import java.math.BigDecimal;
import java.util.Date;
import java.util.List;

@Data
@ApiModel("购物车明细")
public class SysCartItem {
    private Long id;

    private String userId;

    private String regimentId;

    private Long deptId;

    @ApiModelProperty("产品id")
    private Long productId;

    @ApiModelProperty("购物车id")
    private Long cartId;

    @ApiModelProperty("数量")
    private Integer quantity;

    @ApiModelProperty("单价")
    private BigDecimal pricePerUnit;

    @ApiModelProperty("总价")
    private BigDecimal totalPrice;

    private BigDecimal servePrice;

    private String colorId;

    private String serveId;

    private String defectId;

    private String affixId;

    private String img;

    private Integer selected;
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss", timezone = "GMT+8")
    private Date timestamp;
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss", timezone = "GMT+8")
    private Date lastUpdateTime;

    /**
     *  0 1 分享
     */
    private Integer type;

    /**
     *  状态 0 未下单 1 已下单
     */
    private String status;

    private String delFlag;

    private String createBy;

    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss", timezone = "GMT+8")
    private Date createTime;

    private String updateBy;

    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss", timezone = "GMT+8")
    private Date updateTime;

    private String remark;



    /*****************************************/

    @ApiModelProperty(value = "商品标题")
    private String name;
    @ApiModelProperty(value = "商品分类编号", example = "1")
    private Long categoryId;
    @ApiModelProperty(value = "类型编号", example = "1")
    private Byte typeId;
    @ApiModelProperty(value = "简述")
    private String sketch;
    @ApiModelProperty(value = "商品描述")
    private String intro;
    @ApiModelProperty(value = "商品关键字")
    private String keywords;
    @ApiModelProperty(value = "标签")
    private String tags;
    @ApiModelProperty(value = "单位")
    private String unit;
    @ApiModelProperty(value = "商品价格", example = "100.00")
    private BigDecimal price;
    @ApiModelProperty(value = "市场价格", example = "120.00")
    private BigDecimal marketPrice;
    @ApiModelProperty(value = "封面图")
    private String pictureUrl;
    /*****************************************/

    private List<Long> colorIds;
    private List<SysProductOption> colorOptions;
    private List<Long> serveIds;
    private List<SysProductOption> serveOptions;
    private List<Long> defectIds;
    private List<SysProductOption> defectOptions;
    private List<Long> affixIds;
    private List<SysProductOption> affixOptions;

    private String orderId;

}